package com.dscs.domain;

import javax.persistence.Column;
import java.util.List;

/**
 * @author 叶雪娟
 * @date 2019/7/17
 **/
public class User {
    private long id;
    @Column(nullable = false, length = 5)
    private String name;
    private long age;
    private String sex;
    private List<Role> roleList;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getAge() {
        return age;
    }

    public void setAge(long age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }
}
